import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { NzModalService } from 'ng-zorro-antd';
import { AddBaselineComponent } from '../data-center-modal/add-baseline/add-baseline.component';


@Component({
  selector: 'app-data-center-detail',
  templateUrl: './data-center-detail.component.html',
  styleUrls: ['./data-center-detail.component.scss'],
})


export class DataCenterDetailComponent implements OnInit {
  title = '';
  total = 0;
  useCount = 0;

  constructor(
    private routeInfo: ActivatedRoute,
    private modalService: NzModalService,
  ) { }

  ngOnInit() {
    // 接受参数
    this.title = this.routeInfo.snapshot.queryParams['title'];
    this.total = this.routeInfo.snapshot.queryParams['total'];
    this.useCount = this.routeInfo.snapshot.queryParams['useCount'];
  }

}
